I need help in Portugal for spouse visa

hi i got marriage in UK with Portuguese woman i was legal that time now i am overstay and uk immigration has refused us can i come in Portugal to apply for visa

plz help

if you married with portuguese, you can apply for residence permit, first they will issue 5 years.