A dramatic video out of Thailand shows the awesome moment when rescuers were able to free a puppy from a pipe. 

Somehow, the two-month-old pup got stuck with only its tiny head poking out. 

It took about 40 minutes, but the puppy was finally freed after rescuers carefully cut the pipe and used soap and water to push him out.

The puppy was shaken, but expected to be OK.

Watch the dramatic video above. 

You might also be interested in...

Heroic Abandoned Dog Leads Humans to 10 Sick, Newborn Puppies

You May Never Want to Leave Your Dog Alone Again After Watching This

Dog Sees Owner, Breaks Into a Phenomenal Dance

Before & After Photos Show Dachshund's Amazing Weight Loss

15 Amazing Animal Moments That Will Be Hard to Top