To train your pet to walk on a leash, you can start by getting your pet used to wearing the leash and harness indoors. Then, gradually introduce them to the outdoors while on the leash, using treats and positive reinforcement to encourage them to walk beside you. It's important to be patient and consistent with the training process, as some pets may take longer to adjust to walking on a leash than others.