NM cable is used for indoor purposes for use in dry locations, while UF cable is used for outdoor applications or direct burial in the ground.