Input (grade 12): The Emirate of Granada was established in 1228, after the Almohad dynasty was defeated by the Christians at the Battle of Las Navas de Tolosa.
Output (grade 5): The Emirate of Granada was established in 1228.