Always apply sunscreen before you tan, which will help you get a more gradual, longer-lasting tan and prevent sunburn. Apply it about 20 minutes before you go outside so it has time to soak into your skin.