The 58-year-old Portuguese, who has won 25 trophies in his managerial career, was sacked by Premier League team Tottenham Hotspur in April after 17 months in charge.
Mourinho will take charge of the Italian side ahead of the 2021-22 campaign, with a deal that will run until 30 June 2024.
“The incredible passion of the Roma fans convinced me to accept the job and I cannot wait to start next season,” Mourinho said in a statement.
Roma announced earlier on Tuesday that current coach Paulo Fonseca will leave his role at the end of the current campaign.
The club suffered a heavy 6-2 defeat against Manchester United in the Europa League semifinal first-leg last week and currently sits seventh in the league.
“We are thrilled and delighted to welcome José Mourinho into the AS Roma family,” said Roma President Dan Friedkin and Vice-President Ryan Friedkin in a statement.
“A great champion who has won trophies at every level, José will provide tremendous leadership and experience to our ambitious project.
“The appointment of José is a huge step in building a long-term and consistent winning culture throughout the club.”
Mourinho is one of the most well known and successful managers in the game and has previously coached the likes of Real Madrid, Manchester United, Inter Milan and Chelsea.
“I think people have the perception that I’m not the humblest guy,” he recently said in an interview with The Times. “I think people is wrong!
“I think my nature is really humble. But sometimes because I say things that are so direct the perception is I’m not a humble guy. I think I sell a lot.
his is the second time that Mourinho has worked in Serie A. He was Inter Milan coach between 2008-2010, in his final season guiding the team to a remarkable treble – the Serie A title, the Coppa Italia and the Champions League.
Following his departure from Tottenham, and given his track record in the sport, many wondered what was next for Mourinho.
He told The Times newspaper on Saturday that he would only take a job in what he deemed was a competitive league.
“In Germany and France, you know if you are going to the club A or club B, you know your destiny is written immediately,” he said.
“It’s all about the pressure. I want it. I would choose pressure, always. Sometimes that pressure becomes unbalanced, or out of proportion, but I refuse the opposite! I refuse to go to a country where the pressure doesn’t exist. I refuse!”