 For AC (bi-directional) operation two MOSFETs are arranged back-to-back with their source pins tied together.Their drain pins are connected to either side of the output.The substrate diodes are alternately reverse biased to block current when the relay is off.