Let $A$ and $B$ be commutative rings with unity, $f:Ato B$ a ring homomorphism and $J$ an ideal of $B$. Then the subring $Abowtie^fJ:={(a,f(a)+j)|ain A$ and $jin J}$ of $Atimes B$ is called the amalgamation of $A$ with $B$ along with $J$ with respect to $f$. In this paper, among other things, we investigate the Cohen-Macaulay and (quasi-)Gorenstein properties on the ring $Abowtie^fJ$.