This is a Masyu (Castle Wall) puzzle.
The rules for Masyu can be found here: Rules page
In addition to the usual rules for Masyu, not all circles need to be visited. Unvisited white circles must be inside the loop, and unvisited black circles must be outside.