Two pyrene derivatives with different substituents were synthesized. Ultrafast nonlinear optical properties of the compounds were investigated via Z-scan. Both pyrene derivatives show strong two-photon absorption. The nonlinear optical response is affected by substituents on thiophene ring.