The so-called Temple of Romulus was dedicated by Emperor Maxentius to his son Valerius Romulus, who died in 309 and was rendered divine honours. It is possible that the temple was in origin the temple of "Iovis Stator" or the one dedicated to Penates, and that Maxentius restored it before the re-dedication.
The ancient Roman fabric was Christianized and dedicated to Sancti Cosma et Damiano in 527, when Theodoric the Great, king of the Ostrogoths, and his daughter Amalasuntha donated the library of the Forum of Peace (Bibliotheca Pacis) and a portion of the Temple of Romulus to Pope Felix IV. The pope united the two buildings to create a basilica devoted to two Greek brothers and saints, Cosmas and Damian, in contrast with the ancient pagan cult of the two brothers Castor and Pollux, who had been worshipped in the nearby Temple of Castor and Pollux.