Spencer Horwitz's bases-loaded hit by pitch in the eighth inning was the difference as the host Pittsburgh Pirates beat the Miami Marlins 3-2 on Saturday afternoon.