The troops had to endure tropical rainstorms and temperatures of up to 34 degrees as they delivered combat and counter-insurgency training in rural and urban settings.
They worked alongside soldiers from America, France and Denmark on a range of realistic, intelligence driven exercises.
The Ugandan soldiers were shown how to deal with bombs and defend a convoy from attack, but also how to engage with the local community.
They will put the training into practice when they are deployed as part of the African Union Mission to Somalia.
It is the third time that 4th Battalion The Yorkshire Regiment have delivered training in Uganda.
The aim is to build the capability of the Ugandan People’s Defence Force so they can help bring long-term stability to Somalia.
Sgt Pigg said: “It’s a deployment and it’s well within the capability of the reserves to fulfil this task.
“The fact that we are reserves means that we are bringing a lot of skills to the table from our civilian roles.”
Sgt Pigg, a father-of-three, was joined in Uganda by his Colour Sergeant Gary Walledge, 47, from Barnsley.
Col Sgt Walledge joined the regular army in 1988 and served for 10 years.
He is now in the Army Reserve and works as a postman in civilian life.
His son Kieron Walledge is also a reservist.