In this paper, we found a new model for a compact star with charged anisotropic matter distribution considering the generalized Chaplygin equation of state. The Einstein-Maxwell field equations have been solved with a particular form of metric potential and electric field intensity. The plots show that physical variables such as radial pressure, energy density, charge density, anisotropy, radial speed sound, and the mass are fully well defined and are regular in the star's interior. We obtained models consistent with stellar objects such as GJ 832, LHS 43, SAO 81292, GJ 380, GJ 412, and SAO 62377.