Basically, this two dynasties are different on the basic of different government and capital. However, these two dynasties shares a lot of features (actually are almost the same) and both are founded by relatives from the same family, hence Eastern and Western Han are considered as a single dynasty Han.