▁got ▁out ▁alive , ▁he ▁would ▁write ▁a ▁Se fer . ▁He ▁was ▁mi rac ul ously ▁saved , ▁and ▁there after ▁wrote ▁the ▁P ne i ▁Ye h osh ua . ▁He ▁married ▁a ▁second ▁wife , ▁T oba , ▁who ▁bore ▁him ▁four ▁sons ▁and ▁at ▁least ▁two ▁daughters . ▁ ▁He ▁was ▁called ▁to ▁the ▁rabb inate ▁of ▁Tar low ▁and ▁Lis ko , ▁small ▁Gal ician ▁towns . ▁In ▁ 1 7 1 7 ▁he ▁replaced ▁Rab bi ▁T z vi ▁Ash ken azi ▁in ▁the ▁chief ▁rabb inate ▁of ▁L emberg ; ▁and ▁th ence ▁he ▁was ▁called ▁to ▁Berlin ▁in ▁ 1 7 3 1 . ▁ ▁Having ▁dis ple ased ▁Ve itel - He ine ▁E ph ra im , ▁one ▁of ▁the ▁most ▁influ ential ▁leaders ▁of ▁the ▁community , ▁by ▁rendering ▁a ▁judgment ▁against ▁him , ▁he ▁was ▁comp elled ▁at ▁the ▁exp iration ▁of ▁his ▁term ▁of ▁office ▁( 1 7 3 4 ) ▁to ▁res ign . ▁After ▁having ▁been ▁for ▁seven ▁years ▁ra bbi ▁of ▁Met z ▁he ▁became ▁chief ▁ra bbi ▁of ▁Frank fort - on - the - Main ; ▁but ▁the ▁unf avor able ▁attitude ▁of ▁the ▁local ▁authorities ▁toward ▁the ▁Jews , ▁and ▁the ▁fact ▁that ▁the ▁community ▁was ▁divided ▁by ▁controvers ies , ▁made ▁his ▁position ▁there ▁very ▁prec ari ous . ▁ ▁So on ▁after ward , ▁the ▁quar rel ▁between ▁R abb is ▁Ya akov ▁Em den ▁and ▁Y on atan ▁E y b