Replace relay with mosfet

I think you need to give the biiger picture, like what it is you are trying to control, the voltage/amps, high side/low side (prob high side for a relay), and well, ALL the details.