In the invention, tar is upgraded by deasphalting and then hydrocracking to produce valuable products such as low sulfur diesel fuel and mogas. The invention is also directed to a system integrating a pyrolysis furnace operation with refinery operations.