Chosen Solution
My fan on my iMac continues to run as soon as I turn it on.
https://support.apple.com/en-ca/HT202179 Is your computer hot? If not, First make sure your iMac is properly ventilated. The iMac has vents along the bottom edge and on the back. Make sure nothing is blocking them! If it’s properly ventilated and not overheated, try restarting the computer, if that does not work, please read the link provided above! But if restarting it doesn’t help, you may need to reset the SMC, system management controller, which controls the fans and a lot of the physical components in your iMac. There is instructions for doing so here: https://support.apple.com/en-ca/HT201295 please read through all of them before doing anything to your iMac.