Why do organizations adopt matrix structures?

Why do organizations adopt matrix structures? What conditions usually have to be present before an organization should adopt a matrix structure? What are the advantages? What are the disadvantages?