In 1864 , however , the protectorate ended and the Ionian Islands became a part of Greece .
The protectorate ended in 1864 , and the Ionian Islands became a part of Greece .