In this paper we investigate the existence of the periodic solutions of a nonlinear differential equation with a general piecewise constant argument,in short DEPCAG,that is,the argument is a general step function.We consider the critical case,when associated linear homogeneous system admits nontrivial periodic solutions.Criteria of existence of periodic solutions of such equations are obtained.In the process we use the Green's function for periodic solutions and convert the given DEPCAG into an equivalent integral equation.Then we construct appropriate mappings and employ Krasnoselskii's fixed point theorem to show the existence of a periodic solution of this type of nonlinear differential equations.We also use the contraction mapping principle to show the existence of a unique periodic solution.Appropriate examples are given to show the feasibility of our results.