If you are single and want to get married: National Identity Card of both contractors
If you are married and want to divide community property: National Identity Card of both, family record book, titles of the goods to divide, list of values and distribution
Those agreements remain subject to Spain's Code of Civil Procedure, articles 1.318 to 1.324 both included