engine dying due to electric fan

please, I'm open for suggestions. actually, the original post is for help. and yes, with the fan on the ignition switch, it only runs when the key is on. any help is appreciated, more than appreciated. what do you (or anyone else) suggest? can the second power wire be connected to the battery as well? or does it need another power source?
I have my electric fan connected to the ignition switch so it only comes on if the cars ignitions on and to the thermostat relay switche. That way it’s not always on, only when the temp hits 160