"FC Barcelona has reached an agreement with Mahdi El Maimouni for his integration into the club's youth academy," Barça said.
The 17-year-old will initially play for the club's youth teams. Depending on his development and performances, he could later be promoted to Barça Atlètic, FC Barcelona's reserve team, widely regarded as the final step toward the first team.
The signing is part of FC Barcelona's strategy of identifying and developing high-potential young talents from around the world to strengthen its renowned youth academy, La Masia.
Mahdi El Maimouni's arrival marks a new milestone in the career of the young Moroccan international, who will now aim to establish himself at one of the world's most prestigious clubs for developing young footballers.