A wrench for making up or breaking up a pipe joint, the wrench comprising: a tong assembly comprising: an upper tong comprising a first upper tong half pivotably connected to a second upper tong half at their first ends, the first and second upper tong halves being releasably connectable at their second ends; a lower tong comprising a first lower tong half pivotably connected to a second lower tong half at their first ends, the first and second lower tong halves being releasably connectable at their second ends; and a central bearing operatively coupling the upper tong and the lower tong to allow the upper tong to rotate relative to the lower tong ; and a ram assembly for pushing or pulling the upper tong at a tangential location thereof, the ram assembly comprising an upper ram and a lower ram ; wherein the upper ram and lower ram are both configured to move the tong assembly between an open position where the second ends of the first and second upper tong halves and the second ends of the first and second lower tong halves are separated to define a mouth therebetween, and a closed position where the second ends of the first and second upper tong halves and the second ends of the first and second lower tong halves are engaged; wherein the upper ram and the lower ram are moveable in a first direction to place the tong assembly in the open position; and wherein the upper ram and the lower ram are moveable in a second direction to place the tong assembly in the closed position and when the second ends of the first and second upper tong halves are engaged, the upper ram and the lower ram are further moveable in the second direction to rotate the upper tong in a first rotational direction relative to the lower tong . an upper tong comprising a first upper tong half pivotably connected to a second upper tong half at their first ends, the first and second upper tong halves being releasably connectable at their second ends; a lower tong comprising a first lower tong half pivotably connected to a second lower tong half at their first ends, the first and second lower tong halves being releasably connectable at their second ends; and a central bearing operatively coupling the upper tong and the lower tong to allow the upper tong to rotate relative to the lower tong ; and a ram assembly for pushing or pulling the upper tong at a tangential location thereof, the ram assembly comprising an upper ram and a lower ram ; wherein the upper ram and lower ram are both configured to move the tong assembly between an open position where the second ends of the first and second upper tong halves and the second ends of the first and second lower tong halves are separated to define a mouth therebetween, and a closed position where the second ends of the first and second upper tong halves and the second ends of the first and second lower tong halves are engaged; wherein the upper ram and the lower ram are moveable in a first direction to place the tong assembly in the open position; and wherein the upper ram and the lower ram are moveable in a second direction to place the tong assembly in the closed position and when the second ends of the first and second upper tong halves are engaged, the upper ram and the lower ram are further moveable in the second direction to rotate the upper tong in a first rotational direction relative to the lower tong . <EOS>