Mac won't reconnect to wifi.

iOS and iPadOS
Hello Yesterday I took my Mac with me to a friends house and connected it to there wifi. When I got back to my house and tried reconnecting to my wifi, I keep getting a message that says it is unable to join the wireless network and that the connnection timed out. My iPhone does this as well, but I can reconnect it after reseting my network settings. However, I see nothing like that on the Mac. If anyone has any ideas on how to fix this, please let me know!! I have already tried deleting all the networks that I've joined on my Mac and just leaving the one I'm trying to reconnect to, but that didn't seem to work.