The Commercial Port Law Article 21

When a ship encounters an emergency event and requires urgent berthing, the Maritime and Port Bureau or the designated agencies consults with relevant authorities to inspect the situation, and is entitled to reject the application for her entrance into the port when one of the following conditions is met: 1. A ship carrying dangerous objects. 2. Commercial port that cannot handle a ship that carries people who have been subjected to or seem to be infected with infectious diseases, and that will influence national epidemic prevention safety. 3. Body of the ship has been seriously damaged, or the ship is in danger of sinking. 4. Other violation of regulations or there is no need of entering the port.
中文原文 商港法第21條
遇難或避難船舶,經航港局或指定機關會同有關機關檢查,具有下列情事之一,航港局或指定機關得拒絕入港:
一、載運之危險物品有安全顧慮。
二、載運染患傳染病或其可疑症狀之人,有影響國內防疫安全之虞,且該商港未具處置之能力。
三、船體嚴重受損或船舶有沉沒之虞。
四、其他違反法規規定或無入港之必要。

English translation for reference only; the Chinese text prevails. Not legal advice.