Subwavelength grating structure has excellent filtering characteristics, and its traditional design method needs a lot of computational costs. This work proposed a design method of two-dimensional subwavelength grating filter based on a series feedback neural network, which can realize forward simulation and backward design. It was programed in Python to study the filtering characteristics of two-dimensional subwavelength grating in the range of 0.4–0.7 µm. The shape, height, period, duty cycle, and waveguide layer height of two-dimensional subwavelength grating were taken into consideration. The dataset, containing 46,080 groups of data, was generated through numerical simulation of rigorous coupled-wave analysis (RCWA). The optimal network was five layers, 128 × 512 × 512 × 128 × 61 nodes, and 64 batch size. The loss function of the series feedback neural network is as low as 0.024. Meanwhile, it solves the problem of non-convergence of the network reverse design due to the non-uniqueness of data. The series feedback neural network can give the geometrical structure parameters of two-dimensional subwavelength grating within 1.12 s, and the correlation between the design results and the theoretical spectrum is greater than 0.65, which belongs to a strong correlation. This study provides a new method for the design of two-dimensional subwavelength grating, which is quicker and more accurate compared with the traditional method.