Can I get a mortgage in Spain if I am self-employed?
Yes. Being self-employed is not a barrier to getting a mortgage in Spain. Spanish lenders are more concerned about your income that shows on your tax return than with your employment status itself. As long as you have money coming in regularly and can prove this with tax returns, you should have no issues getting a mortgage in Spain.
Whether you're self-employed, in a partnership or working for another company, this has no impact, positively or negatively, on your mortgage application. Regular payments and the type of industry you work in may play a part, but being self-employed is not a problem at all.