Ubatuba is a municipality on the northern coast of São Paulo state, on the border with the Rio de Janeiro state.