Hello, i searched some answears but nowhere i couldnt find a proper answear. I hope here i could get one.

I am a haitian girl, came in Bilbao 2 years ago with my boyfriend. He is from Spain. The idea was to marry him. Recently love was gone, but i married him because i was about to get deported. So now we r married.
I want to ask how much time we need to be married, so i can keep residence and not be deported back. I dont love him anymore, i dont want to be with him. But i dont wana be deported also.
Thanks in advance.