Banks will not accept funds released from property overseas
Spanish mortgage lenders expect to see liquidity for the deposit in the form of savings. Banks will not consider funds released from a property you own in another country a valid means by which to place a deposit for a mortgage in Spain.
A credit report will be checked and if there is a debt showing for the amount used to fund the down payment a mortgage will rarely be granted. Loans are not acceptable for a deposit.