When Girolamo Masci of Ascoli, who had previously been Minister General of the Franciscan Order, became pope as Nicholas IV, 15 February 1288, he created Matthew cardinal with the titulus of San Lorenzo in Damaso that May. After this Matteo was made Cardinal Bishop of Porto, and penitentiarius major (Grand Penitentiary).
When Girolamo Masci of Ascoli, who had previously held the position of Minister General of the Franciscan Order, ascended to the papacy as Nicholas IV on 15 February 1288, he elevated Matthew to cardinal with the title of San Lorenzo in Damaso in May. Following this, Matteo was appointed Cardinal Bishop of Porto and Grand Penitentiary.