A settlement has been reached in a class action lawsuit over the largest meat recall in Canadian history.

The lawsuit was launched against XL Foods based in Brooks, Alberta after 18 people got sick with E. coli after eating tainted meat in 2012.

The majority of the $4 million settlement will go to those poisoned by the meat, health care providers and claims will also be paid out to consumers who had to throw out the tainted products. 

The settlement still has to be approved by the courts.