A notary is important during the inheritance process in Spain. Their role is to advise you of the formalities and procedures involved, to draft the required documents, and to publicly certify the facts, acts, and agreements that they witness.
Whilst a notary will ensure that the documentation is done correctly, they do not affect the majority of the procedure, so it’s worth turning towards a lawyer for advice with inheritance law in Marbella or elsewhere.