IgM is the first antibody to appear and represents signs of recent infection. IgG is the longer term response which remains in the body after convalescence (recovery).