1) the areas unified in both countries were inhabited by people with similar culture and the same language- this made unification easier and more efficient.
2) both unification processes were (partially) a reaction to Napoleon's dominion over Europe: people wanted to unite to never be conquered like this again
3) both unifications were done by strong leaders: Bismark in Germany and Garibaldi in Italy