However, Francisco Martinez de la Rosa was the first Prime Minister recognized by a constitutional law (Spanish Royal Statute of 1834) and Felipe González the longest-serving Prime Minister to have been officially referred to as such.