Is there a need for a co-marital agreement when buying a property in Spain?

A Polish cohabitation agreement (marital property contract) is not formally required for the purchase of real estate in Spain by individuals from Poland. However, it is important to be aware of how Spanish law treats marriages and how this affects property ownership.