Nicaragua have qualified for the World Baseball Classic for the first time ©Getty Images

Nicaragua won the last place at next year's World Baseball Classic and are poised to make a tournament debut.

Nicaragua beat Brazil 3-1 in a winner-takes-all clash at Rod Carew Stadium in Panama City.

A two-run top of the first inning did the damage, with Elmer Reyes and Dwight Britton both driving in runs.

Reyes was later credited with another run batted in in the seventh inning.

Brazil managed only five hits and scored on a Nicaragua error.

Winning pitcher Osman Gutierrez allowed only one run in six innings of work.

Nicaragua had lost to Brazil earlier in the qualifier, but defeated Pakistan and Argentina to reach the last-chance match.

The World Baseball Classic is sanctioned by the World Baseball Softball Confederation (WBSC) and organised in conjunction with Major League Baseball.

It serves as the WBSC's World Championship for men's national baseball teams.

The 2023 edition is due to be played in the United States, Japan and Taiwan from March 8 to 21.