The ultrahigh optical absorption coefficient of AgBiS2 has been achieved by atomic periodic engineering of AgS6 and BiS6 octahedrons. Furthermore, strong dielectric constant modulation and direct band gap of tetra-I41/amd AgBiS2 are obtained, which enable a high spectroscopic limited maximum efficiency of 29.7% at an ultrathin thickness of 100 nm.