Canada's pigs are about to get a little more breathing space.

The National Farm Animal Care Council (NFACC) has introduced a new Code of Practice for the Care and Handling of Pigs that effectively bans the use of controversial gestation crates in which sows are so confined that they are unable to turn around. The code also mandates pain relief during castration and tail docking.

As of July 1, mature female pigs must be kept in groups rather than in the small crates. The regulations do allow for animals who have just bred to be housed in individual stalls for roughly one month, but the new regulations require that the pig be able to stand up without touching the bars on both sides of the stall and to be able to lie down without their udders protruding into the adjacent stall.

However, the new regulations only apply to new construction or replacement stalls, so the more controversial gestation crates will continue to be used for the time being.

Sayara Thurston, a spokesperson with the Humane Society, called the new rules a "watershed moment for farm animals in Canada and throughout North America."

"It signals the beginning of the end of archaic, extreme confinement systems that consumers simply don’t support and which other countries have long-since banned," Thurston said in a statement. "There is still much advancement needed to improve the welfare of pigs raised on Canadian farms, but this Code of Practice is a monumental first step."

Story continues below slideshow

Loading Slideshow...
  • Ag-Gag Laws

    <a href="">Ag Gag laws</a> are the government's attempt to hide what goes on behind the closed doors of a factory farms. You don't have to be an animal rights activist to get angry about this. If you eat meat, shouldn't it make you mad that the government doesn't want you to see how your food is produced? Thanks to <a href="">ag gag bills </a>sweeping the country, in many states, it is illegal to film or take photographs of what goes on inside factory farms. The reason? The government is afraid of what might be discovered.

  • Antibiotic Use

    The image you see here, provided by <a href="">Mercy For Animals</a>, is just a small snapshot of the disgusting conditions animals are forced to endure at factory farms. Because of the filth, the animals are given antibiotics to prevent disease (which doesn't really work). Often, antibiotics are also given to promote unnatural growth. This in turn is making human illness harder to treat because of new strains of <a href="">antibiotic-resistant bacteria.</a>

  • World Hunger

    According to a report done by the Humane Society entitled <a href="">"The Impact of Industrialized Animal Agriculture On World Hunger,"</a> nearly 80 percent of the world's soybeans and up to 50 percent of the world's corn are fed to animals killed for meat instead of directly to humans. Animal agriculture is inefficient from a world hunger perspective because we are feeding our livestock food that could be used for humans.

  • Worker Concern

    Many people don't realize that animal agriculture is one of the worst industries from a worker health perspective. <a href="">According to OSHA,</a> hazards from factory farming jobs can include everything from chronic pain to cardiovascular illness and death. Many of the workers are also undocumented, leading to a situation in which they are fearful of reporting their illness or injury and therefore do not receive treatment. <a href="">Human Rights Watch</a> calls worker conditions in factory farms "systematic human rights abuses."

  • Disease

    Because of the unsanitary conditions in factory farms, they are virtual breeding grounds for <a href="">harmful diseases</a>. Bird flu, swine flu and mad cow disease are just <a href="">some of the risks</a> posed to humans from industrialized animal agriculture.

  • Downed Cows

    A "downed cow" is a cow too sick or injured to walk. Downed cows are <a href="">not supposed to be slaughtered for human consumption</a> but are often kicked, prodded, and beaten to get them to slaughter anyway.

  • Environmental Resources

    Factory farming uses up precious natural resources. Animal agriculture <a href="">contributes</a> to deforestation and degrades the land it does use. Meat production also wastes water. In fact, <a href=""> it takes 2,400 gallons of water to produce 1 pound of meat, but just 25 gallons to produce 1 pound of wheat.

  • Unsanitary Conditions

    Would you want to eat pork from this farm? If pigs on our factory farms are turning green and being dumped into buckets (image courtesy of <a href="">Mercy For Animals</a>), then it means our current methods aren't working. You don't have to be a vegetarian to understand that conditions like these are harmful to everyone: the animals, people and the environment.

  • Systematic Animal Rights Abuses

    It's no secret that animals we eat have to be killed to get to our plates. What is a secret is the <a href="">systematic animal rights abuses</a> that go on at factory farms worldwide. There are <a href=""> very few laws</a> to protect the welfare of factory farmed animals as it is, but it's all too common to see workers <a href="">kicking, punching, stomping on</a> or otherwise abusing animals unnecessarily.

  • Cruel Slaughter

    This is called a <a href="">macerator</a>. It's a machine that grinds up living baby chicks that are no longer of use to the animal agriculture industry. Even for omnivores, do we really believe the best way to dispose of animals is the cruelest way imaginable? This is a common practice at factory farms.

  • Animal Living Conditions

    In<a href=""> gestation crates</a>, pigs are confined to live their whole lives in what is essentially a box. They can not turn around or take more than a step or two forward or backwards. Imagine living your whole life standing up, with your arms at your sides and not being able to do any of the activities that feel natural to you. Welcome to a factory farmed pig's existence. Pigs aren't alone in their suffering, hens suffer their whole lives in <a href="">battery cages. </a>

  • Impact On Climate Change

    According to the <a href="">United Nations</a>, the livestock sector contributes 18 percent globally to greenhouse gas emissions. Every one should be angry about the impact factory farming has on our environment.

  • Government Subsidies

    The government <a href="">provides gigantic subsidies</a> for animal agriculture industries like beef, pork and poultry farms. <a href="">A chart</a> created by the New York Times in 2010 shows the difference between the recommendations Americans are supposed to heed for personal nutrition and the industries which get the highest federal subsidies. While whole foods like vegetables and grains are supposed to be at the heart of our diet, the meat and dairy industries receive nearly three-quarters of the total amount of money available for federal agriculture. Shouldn't we be asking why?

  • Learn More & Get Involved

    Regardless of what diet you choose, factory farming is bad for everyone. To learn more about how to get involved visit <a href="">Mercy For Animals</a>.

The crates are used to house pregnant or recently-mated pigs. Pregnant pigs have a tendency to behave aggressively. Sows are kept in the stalls during their four month pregnancy and are released to give birth before being impregnated again and sent back to the stalls.

The stalls have long been a target of environmental groups. The Society for the Prevention of Cruelty to Animals has called them the most "concerning practice" in Canadian farming, according to the The Province. Last year, Ryan Gosling published a plea for Canada to ban the crates completely.

In 2012, non-profit Mercy for Animals released video footage of the conditions at a pig farm in Manitoba that showed exactly what it's like to live in a gestation crate. The video is extremely graphic.

The industry was initially hesitant to embrace the new rules due to the costs involved, but now that more and more retailers and restaurants want pork raised in less-confined conditions, farmers are starting to come around. McDonald’s, Burger King, Wendy’s and Tim Hortons have all announced that they will only use meat from more humanely-housed animals. Walmart Canada, Loblaws and Costco Canada have also committed to getting their pork from operations that do not use gestation crates within the next nine years.

"Change is not easy," Carolyn MacLaren, the general manager of the BC Farm Animal Care Council, told The Province. "But philosophically this is something that we all agree on. We’re moving in the right direction."

The new rules are not the result of Conservative government policy, since the NFACC operates independently.

The EU introduced similar guidelines several years ago and many European nations have already moved to ban gestation crates completely.

The pig farming industry has come under intense scrutiny of late after an investigation by the Humane Society in the U.S. discovered that sows in gestation crates are being fed the ground-up intestines of baby pigs. In some cases it is possible that the pigs are being fed their own deceased young. An outbreak of porcine epidemic diarrhea in the U.S. and Canada has killed millions of piglets, leading the industry to use them as feed.

Still, animal rights groups are celebrating their victory on gestation crates while looking toward the future.

Barbara Cartwright, CEO of the Canadian Federation of Humane Societies, described the new rules a "turning point" while calling on farmers to "provide even higher standards than the Code requires."

Also on HuffPost:

Loading Slideshow...
  • Little pig, you expect an Etsy store to be your only source of income in such an oversaturated marketplace???

  • The odds of even needing a tiny pig extra on Law & Order: SVU are so low.

  • How many pages exactly do you have written of this "great American novel," tiny pig?

  • Who would even drive you to the 'America's Got Talent' auditions anyway, tiny pig?

  • Form a band??? Come on, guys.

  • Nevermind breaking into the business, you really think you'd find modeling fulfilling with your personality, tiny pig?

  • Hey tiny pig, no gallery wants to display your 'art'

  • You guys, to be honest, that short film idea sounds truly awful.

  • Look tiny pig, no one wanted to have to say this, but Beyonce is married already. To Jay-Z. And it doesn't look like their marriage is going to end anytime soon you sweet little fool.

  • Cool it with the Kickstarter, piggy. Someone already came up with that app.

  • Let's say you did finish culinary school and rounded up the capital, you're too tiny to drive a cupcake food truck.

  • Oh tiny pig, the fashion blog bubble burst years ago.

  • Take off those wellies, little pig. No one's coming to your poetry slam.

  • Oh piglet, you're no where near good enough at wrestling to turn pro. No one would take you seriously.

  • We know you've been to A LOT of open mics, tiny pig, we know.

  • The movie "Babe" came out less than 10 years ago, no way it's time for a remake, guys.

  • Nobody told you "America's Next Top Dance Crew" got canceled? Back to dancing in the parking lot of K-Mart, piglets.