We stayed at the Hotel Rex on Sutter - a couple of blocks away from Union Square. This is a really nice hotel, and I recommend it to anyone wanting pleasant accommodations in San Francisco.