Joule is a derived unit as, J = Nm, and N = kg m/s². So, joule depends upon many such physical units and hence, it is a derived unit.
More:-