Trump was criminally prosecuted on both state (New York and Georgia) and federal charges, and convicted on New York state charges, before being re-elected. Because prosecution is an executive power exercised by the President, his re-election made it so that he would be President and thus unprosecutable by the time of trial on the federal charges for which there were still active prosecutions, resulting in them being dismissed without prejudice. (Technically, they could be refiled after he leaves office again.)
Concerns about Constitutional issues with state penalties interfering with federal duties also led the judge in the New York state case, where he was convicted of 34 felony charges, to sentence him to "unconditional discharge" -- essentially, he remains a convict, but faced no penalty beyond the fact of officially being a felony convict.
Issues relating to prosecutorial behavior have stalled Trump's prosecution on state criminal charges in Georgia, but those charges remain active (whether the prosecutor's office that was handling the case can continue to do so is an issue currently subject to appeal, and may not be decided for several months.)
Concerns about Constitutional issues with state penalties interfering with federal duties also led the judge in the New York state case, where he was convicted of 34 felony charges, to sentence him to "unconditional discharge" -- essentially, he remains a convict, but faced no penalty beyond the fact of officially being a felony convict.
Issues relating to prosecutorial behavior have stalled Trump's prosecution on state criminal charges in Georgia, but those charges remain active (whether the prosecutor's office that was handling the case can continue to do so is an issue currently subject to appeal, and may not be decided for several months.)