engine dying due to electric fan

I would go right from the battery to the relay to the fan, and make sure you have a big enough wire 12ga 10ga depending on how long a run it is.