The Under-21 national football team will face Spain, Portugal and Serbia in the group stage at the 2017 UEFA European Championship in Poland.
The draw held on Thursday put Macedonia in Group B of the tournament.
Macedonia plays its first match against Spain on July 17, followed by Serbia (July 20) and Portugal (July 23).
Group A is comprised of Poland, Slovakia, Sweden and England, while Group C includes Germany, Czech Republic, Italy and Denmark.
The top team from each group and the best second-ranked team advance to the semifinals.