Modulation of the activity of tumor suppressor p53 is a key event in the replication of many viruses. We have studied the function of p53 in African swine fever virus (ASFV) infection by determining the expression and activity of this transcription factor in infected cells. p53 levels are increased at early times of infection and are maintained throughout the infectious cycle. The protein is transcriptionally active, stabilized by phosphorylation, and localized in the nucleus. p53 induces the expression of p21 and Mdm2. Strikingly, these two proteins are located at the cytoplasmic virus factories. The retention of Mdm2 at the factory may represent a viral mechanism to prevent p53 inactivation by the protein. The expression of apoptotic proteins, such as Bax or active caspase-3, is also increased following ASFV infection, although the increase in caspase-3 does not appear to be, at least exclusively, p53 dependent. Bax probably plays a role in the induction of apoptosis in the infected cells, as suggested by the release of cytochrome c from the mitochondria. The significance of p21 induction and localization is discussed in relation to the shutoff of cellular DNA synthesis that is observed in ASFV-infected cells.