sentences:  Four years later, King Carlos appointed him court painter; a largely honorary title, considering the circumstances, although he did produce numerous portraits.He lost this position in 1815 when the troops of Joachim Murat entered the Papal States in an effort to unify Italy under French control, prompting King Carlos to abandon his exile.In 1818, after the Restoration, he returned to Madrid with his paintings.