Nearshore ship detection has significant applications in both the military and civilian domains. Compared to synthetic aperture radar (SAR), polarimetric synthetic aperture radar (PolSAR) provides richer information for analyzing the scattering mechanisms of ships and enables better detection of ship targets. However, ships in nearshore areas tend to be highly concentrated, and ship detection is often affected by adjacent strong scattering, resulting in false alarms or missed detections. While the GP-PNF detector performs well in PolSAR ship detection, it cannot obtain satisfactory results in these scenarios, and it also struggles in the presence of azimuthal ambiguity or strong clutter interference. To address these challenges, we propose a nearshore ship detection method named ECD-PNF by integrating superpixel-level GP-PNF and refined polarimetric decomposition. Firstly, polarimetric superpixel segmentation and sea–land segmentation are performed to reduce the influence of land on ship detection. To estimate the sea clutter more accurately, an automatic censoring (AC) mechanism combined with superpixels is used to select the sea clutter superpixels. By utilizing refined eight-component polarimetric decomposition to improve the scattering vector, the physical interpretability of the detector is enhanced. Additionally, the expression of polarimetric coherence is improved to enhance the target clutter ratio (TCR). Finally, this paper combines the third eigenvalue of eigenvalue–eigenvector decomposition to reduce the impact of azimuthal ambiguity. Three spaceborne PolSAR datasets from Radarsat-2 and GF-3 are adopted in the experiments for comparison. The proposed ECD-PNF method achieves the highest figure of merit (FoM) value of 0.980, 1.000, and 1.000 for three datasets, validating the effectiveness of the proposed method.