In 1813 Brunacci recommended Mossotti to the Royal Astronomical Observatory of Brera in Milan, where he began to work, unpaid, on the calculation of the ephemerides.