The draw ceremony took place on Thursday at the historic Wieliczka Salt Mine in Poland, determining the group-stage opponents for the 32 participating nations.
Iran will play their preliminary-round matches in Katowice.
The 2027 FIVB Men's Volleyball World Cup is scheduled to run from September 9 to 26 across five Polish cities. The group-stage matches will be held in Gdańsk, Katowice, Łódź and Olsztyn, while Kraków will host the semifinals and medal matches.
The competition will feature 32 teams divided into eight groups of four, with the top two sides in each pool advancing to the knockout stage.
The tournament marks a new chapter for international volleyball, following the International Volleyball Federation's (FIVB) decision to rename its flagship World Championship as the Volleyball World Cup. The new designation will be adopted for the 2027 edition, with the competition also moving to a two-year cycle.
The event will carry added significance as one of the qualification routes for the Los Angeles 2028 Olympic Games. The three highest-placed teams that have not already secured Olympic qualification will earn berths at the Games.
Iran secured their place in the tournament through the Asian qualification route, joining Japan and South Korea as the continent's representatives.
The Iranian men's team's best-ever performance at the previous World Championships remains a sixth-place finish in 2014.