This species is commonly found in shallow waters on and near coral reefs and occasionally in brackish waters. Juveniles are typically found in extremely shallow water (±15 to 100 cm) inside lagoons, often swimming along the shoreline; adults typically occur on shallow parts of the forereef, often moving over the reef crest and onto the reef flat at flood tide. Individual adults inhabit a relatively small home range of ±2.5 km2 and appear to reside close to their home reef but occasionally cross deepwater channels between adjacent reefs.
A reef is a bar of rock, sand, coral or similar material, lying beneath the surface of water. Many reefs result from abiotic processes (i.e. deposition of sand, wave erosion planing down rock outcrops, and other natural processes), but the best known reefs are the coral reefs of tropical waters developed through biotic processes dominated by corals and coralline algae.