You will be entitled to Spanish citizenship, after having resided legally in Spain for one year. The other requirement is that you have been married to a Spanish citizen for at least one year.