The International Regulations for Preventing Collisions at Sea (COLREGS) specify certain navigation rules for ships at risk for collision. Theoretically, the safety of unmanned surface vehicles and traffic boats would be guaranteed when they comply with the COLREGS. However, if traffic boats do not comply with the demands of the convention, thereby increasing the danger level, then adhering to the COLREGS may be dangerous for the unmanned surface vehicle. In this article, a dynamic obstacle avoidance algorithm for unmanned surface vehicles based on eccentric expansion was developed. This algorithm is used to solve the possible failure of collision avoidance when the unmanned surface vehicle invariably obeys the COLREGS during the avoidance process. An obstacle avoidance model based on the velocity obstacle method was established. Thereafter, an eccentric expansion operation on traffic boats was proposed to ensure a reasonable balance between safety and the rules of COLREGS. The expansion parameters were set according to the rules of COLREGS and the risk level of collision. Then, the collision avoidance parameters were calculated based on the aforementioned motion model. With the use of MATLAB and Unity software, a semi-physical simulation platform was established to perform the avoidance simulation experiment under different situations. Results show the validity, reliability and intellectuality of the algorithm. This research can be used for intelligent collision avoidance of unmanned surface vehicle and other automatic driving ships.