It sounds like you're a new Mac user. There's no switch to turn off wifi. On the top right of the menubar, there's an icon in a striped triangle shape with the top rounded and the pointy side down. You can click on it to turn on and off the wifi.
Hope it helps.