The shooting happened just before 10:30 p.m. on Jones Street between Eddy and Turk in the Tenderloin District.
When officers arrived, they say a man armed with a knife was threatening people.
They shot the man who was then taken to the hospital with life-threatening injuries, but his condition is not known at this time.
Stay with ABC7 News for updates on this developing story.