After receiving his law degree from
Tel Aviv University School of Law, Afek joined the
Military Advocate General Corps, beginning his career in the International Law Department of the unit. He then fulfilled various senior positions in the
Military Advocate General Corps, including the deputy head of the International Law Department, the Air Force District Attorney, the legal advisor for Judea and Samaria Area and the deputy military advocate general. Afterwards, he served as the commander of the interservice “Afek” course of the
IDF Staff and Command College. On October 22, 2015, Afek was promoted to the rank of
Aluf (
general officer) and appointed chief military advocate general. On July 12, 2018, Afek was promoted to the rank of
major general from IDF chief of staff Gadi Eisenkot. As Military Advocate General, Afek functioned as both a legal adviser to the military an as a military attorney general, responsible for law enforcement and military prosecution. During his tenure in office, Afek dealt with a number of high-profile cases, most notably the fallout from a
2016 incident in which soldier Elor Azaria shot to death a subdued Palestinian attacker in Hebron. The soldier was subsequently convicted of manslaughter. In an interview with the
Israeli Bar Association, Afek referred to the case as a legal and moral landmark in the history of military law. Afek graduated
cum laude with an LLB degree from
Tel Aviv University and completed his master's degree in law,
summa cum laude, at Tel Aviv University. Afek also holds a master's degree,
cum laude, in national security studies from
Haifa University (as a joint program with the IDF's
National Security College). Additionally, he attended the Senior Executives in State and Local Government program at
Harvard University. On September 1, 2021, Afek was succeeded as Chief Military Advocate General by Major General Yifat Tomer Yerushalmi. == Deputy Attorney General ==