The agreement has reportedly been in the works for almost a year, with the club and the Morocco international reaching an understanding long before the latest reports brought the deal back into the spotlight.
Brahim's current contract runs until 2027, having last been renewed in June 2023. The new arrangement is understood to extend his commitment by four years, taking it beyond the 2030 date that had previously been discussed.
The decision represents a significant show of confidence from Madrid, particularly given the forward's limited opportunities under José Mourinho this season.
Despite struggling to secure regular minutes, Brahim remains part of the club's longer-term plans. The renewal also reflects the player's determination to establish himself at Madrid rather than pursue the lucrative alternatives reportedly offered to him from elsewhere in the world.
The 27-year-old has continued to attract interest, but his preference has been to fight for a place at the Bernabéu and fulfil the ambition that has shaped his career since returning to the Spanish capital.
The timing is notable because Brahim's situation on the pitch has not always matched the faith being shown in him by the club. Mourinho has had other options available in attack, leaving the forward with a smaller role than he would ideally want.
Nevertheless, Madrid appear convinced that his technical quality and versatility can remain valuable over the coming seasons. Securing his future now also gives the club greater certainty over a player who has attracted attention from abroad.
The announcement is expected to resonate particularly strongly in Morocco, where Brahim has become one of the country's most prominent sporting figures since committing his international future to the national team.
His popularity extends beyond football, with the forward also an important commercial and public figure. A long-term commitment to one of the world's most recognisable clubs will further strengthen that profile.
For Brahim, the new deal represents another opportunity to pursue his ambition of becoming an established Madrid player. For the club, it is a clear indication that his current lack of minutes has not changed its belief in his longer-term value.
