Ferdinand VII of Spain was recognized as his son by Charles IV .
The eldest surviving child of Maria Luisa of Parma and recognized as his son by her husband Charles IV , King of Spain , Ferdinand was born in the vast palace of El Escorial near Madrid .
Ferdinand VII of Spain