The writs of assistance were a legal document permitting British officials to search ships without a reason.