Summary:
At the start of the game, your land units cannot enter any water tiles. However, once you've learned the Optics technology, you can earn the promotion that allows land units to "embark" and move into coastal water tiles. To embark a unit, move the unit to a coastal tile and then click on the "Embark" Action. Once embarked, the unit must move into water. (Optics allows movement into coastal water only. The later Astronomy tech allows embarked units to enter ocean tiles.)
In the water the embarked unit is very slow and helpless. It is totally unable to fight, and any enemy naval vessel can easily destroy it. It's critical to accompany embarked land units with a strong naval defense.
When the unit is adjacent to a land tile, you can click on the "Disembark" action. The unit will then be able to return to dry land. Alternatively you can right-click on a land tile and the unit will disembark automatically.