A tick needs to be attached to your body for at least 36 hours to transmit Lyme disease, but other infections can be transmitted within hours or less time.