Is Peru the capital of Spain?

No it is not. Peru is a country in South America, Spain is a country in Europe.