I am a Filipina living here in the Philippines and my boyfriend is a Spanish, we want to get married in Spain but the embassy didn't give me a visa. So what is the best way that we can do so that we could married and live in Spain together?

Because we don't know where to start and we don't know the process.
Please help us.
Thank you