To clear a ship at the customhouse Meaning, Definition & Usage

Definitions
  1. to exhibit the documents required by law, give bonds, or perform other acts requisite, and procure a permission to sail, and such papers as the law requires.

Webster 1913